package heven.holt.wan.android.model

import heven.holt.library.widget.xbanner.entity.BaseBannerInfo

/*
{
    "desc":"一起来做个App吧",
    "id":10,
    "imagePath":"https://www.wanandroid.com/blogimgs/50c115c2-cf6c-4802-aa7b-a4334de444cd.png",
    "isVisible":1,
    "order":1,
    "title":"一起来做个App吧",
    "type":0,
    "url":"https://www.wanandroid.com/blog/show/2"
}
 */
data class BannerModel(
    val desc: String?,
    val id: Int?,
    val imagePath: String?,
    val isVisible: Int?,
    val order: Int?,
    val title: String?,
    val type: Int?,
    val url: String?
) : BaseBannerInfo {
    override fun getXBannerUrl(): String? = url

    override fun getXBannerTitle(): String? = title
}